package com.zee.example;

import android.support.v7.app.AppCompatActivity;

import com.zee.http.HttpLifeManager;
import com.zee.http.IHttpLife;
import com.zee.http.MyOk;
import com.zee.http.request.ZCacheStringResult;


public class BaseActivity extends AppCompatActivity implements IHttpLife {
    private HttpLifeManager mHttpLifeManager = new HttpLifeManager();


    @Override
    protected void onDestroy() {
        super.onDestroy();
        mHttpLifeManager.onDestroy();

        MyOk.load("https://api.wn.work/appstore-web-api/getGroupAppList").postJson().addInterceptor(new ThirdPartyInterceptor()).execute(new ZCacheStringResult(){

            @Override
            public void onSuccessAsyncThread(String data, boolean isFromCache) {

            }
        });
    }

    @Override
    public HttpLifeManager getHttpLifeManager() {
        return mHttpLifeManager;
    }
}
